package com.zenkirin.divacrm.service.impl;

import java.util.List;

import com.zenkirin.divacrm.dao.CustomerDAO;
import com.zenkirin.divacrm.model.Customer;
import com.zenkirin.divacrm.service.CustomerManager;

public class CustomerManagerImpl implements CustomerManager {
	private CustomerDAO dao;

	public void setCustomerDao(CustomerDAO dao) {
		this.dao = dao;
	}

	@Override
	public void delete(String id) {
		dao.delete(new Long(id));

	}

	@Override
	public Customer getCustomer(String id) {
		return dao.getCustomer(new Long(id));

	}

	@Override
	public List getCustomers() {
		return dao.getCustomers();
	}

	@Override
	public void save(Customer c) {
		dao.save(c);

	}

	

}
